package com.cdn.log.mq;

import com.cdn.log.consts.CLogConst;
import org.slf4j.MDC;

import java.io.Serializable;

/**
 * @author 蔡定努
 * 2024/06/01 14:23
 */
public class ClogMessage<T> implements Serializable {

    private static final long serialVersionUID = -2318468805903577584L;
    private T t;
    private String traceId;

    public ClogMessage() {
        this.traceId = MDC.get(CLogConst.TRACE_ID);
    }

    public T getT() {
        return t;
    }

    public void setT(T t) {
        this.t = t;
    }

    public String getTraceId() {
        return traceId;
    }


}
